package com.scau.service;

import com.scau.pojo.OrderItem;

import java.util.List;

public interface IOrderService {
    /***
     * 获取对应的品牌商订单
     * @param username
     * @return
     */
    public List<OrderItem> getBrandOrderItems(String username);
    /***
     * 获取对应借卖方的订单
     * @param username
     * @return
     */
    public List<OrderItem> getBuyerOrderItems(String username);
    //获取单个订单信息方法
    public OrderItem getBrandOrderItem(String id);

    public int addOrderItem(OrderItem orderItem);

    /***
     * 更新对应的订单
     * @param orderItem
     * @return
     */
    public int updateOrderItem(OrderItem orderItem);

    public List<OrderItem> getOrderItems();

    public void deleteOrderItem(String Id);


}
